# CMake最低版本号要求
cmake_minimum_required(VERSION 3.20)

# 项目信息
project(demo)

# 添加包含路径
include_directories(include/compiler/step1)
include_directories(include/compiler/step2)
include_directories(include/compiler/step3)
include_directories(include/runtime)

# 递归构建
add_subdirectory(lib)

# 查找当前目录下的所有源文件，并将名称保存到 DIR_SRCS 变量
aux_source_directory(. SRC_LIST)

# 指定生成目标
add_executable(${PROJECT_NAME} ${SRC_LIST})

# 添加链接库
target_link_libraries(${PROJECT_NAME} PUBLIC
  runtime
  step1
  step2
  step3
)